#!/usr/bin/python
# -*- coding: utf-8 -*-
# CreateDate: 2018-1-10

from flask import Blueprint
from flask_restful import Api

from resources.helloResource import Hello
from resources.globalResource import GlobalResource
from resources.gateKlineResource import GateKlineResource
from resources.gatePairResource import GatePairResource
from resources.accountResource import AccountResource
# from resources.gateTradeResource import GateTradeResource
# from resources.Category import CategoryResource
# from resources.Comment import CommentResource

api_bp = Blueprint('api', __name__)
api = Api(api_bp)

# Routes
api.add_resource(Hello, '/test')
api.add_resource(GlobalResource, '/global')
api.add_resource(AccountResource, '/account')
api.add_resource(GatePairResource, '/gate/pair')
api.add_resource(GateKlineResource, '/gate/kline/<string:pair_name>')

# api.add_resource(GateTradeResource, '/gate/trade')
# api.add_resource(CategoryResource, '/category')
# api.add_resource(CommentResource, '/comment')
